package org.airlink.persistence.criteria.expressions
{
	import flex.persistence.criteria.Expression;
	
	import org.airlink.persistence.criteria.ExpressionImpl;
	
	public class CountDistinct extends ExpressionImpl
	{
		private var expression:Expression;
		public function CountDistinct (expression:Expression) {
			this.expression = expression;
		}
		
		override public function toString():String{
			var result:String = "";
			result += "count(distinct (";
			result += expression.asValue();
			result += "))";
			return result;
		}
	}
}